﻿<phone:PhoneApplicationPage 
    x:Class="SlXnaAppMangoMotion.GamePage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="800" d:DesignWidth="480"
    shell:SystemTray.IsVisible="False">
    
    <!--完全に XNA Framework を使用してページをレンダリングするため、XAML コンテンツは必要ありません。-->
    <Grid>
        <!--
        <Rectangle Name="videoRect" Width="640" Height="480" Canvas.ZIndex="1" Visibility="Collapsed">
            <Rectangle.Fill>
                <VideoBrush x:Name="viewFinderBrush"/>
            </Rectangle.Fill>
            <Rectangle.RenderTransform>
                <RotateTransform Angle="90" CenterX="240" CenterY="240"/>
            </Rectangle.RenderTransform>
        </Rectangle>-->
        <Canvas Name="videoRect" Width="640" Height="480" Canvas.ZIndex="1">
            <Canvas.Background>
                <VideoBrush x:Name="viewFinderBrush"/>                
            </Canvas.Background>
            <Canvas.RenderTransform>
                <TransformGroup>
                <RotateTransform Angle="90" CenterX="240" CenterY="240"/>
                    <TranslateTransform Y="-160"/>
                </TransformGroup>
            </Canvas.RenderTransform>
        </Canvas>
        <Button Content="Shutter" Height="80" Name="buttonShutter" VerticalAlignment="Bottom" HorizontalAlignment="Left" Visibility="Collapsed" Click="buttonShutter_Click"/>
        <CheckBox Content="Motion" Height="80" Name="cbMotion" VerticalAlignment="Bottom" Checked="cbMotion_Checked" Unchecked="cbMotion_Unchecked" Visibility="Visible" HorizontalAlignment="Right" />
    </Grid>
</phone:PhoneApplicationPage>
